package guestbook.client;

import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Label;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.HiddenField;

public class LoginDialog extends DialogBox {

	public LoginDialog() {
		setHTML("Pilgram Web Space");
		
		com.extjs.gxt.ui.client.widget.form.FormPanel frmpnlNewFormpanel = new com.extjs.gxt.ui.client.widget.form.FormPanel();
		frmpnlNewFormpanel.setHeading("Login");
		frmpnlNewFormpanel.setCollapsible(true);
		
		TextField txtfldUserName = new TextField();
		txtfldUserName.setFieldLabel("Username");
		frmpnlNewFormpanel.add(txtfldUserName, new FormData("100%"));
		
		TextField txtfldPassword = new TextField();
		txtfldPassword.setPassword(true);
		frmpnlNewFormpanel.add(txtfldPassword, new FormData("100%"));
		txtfldPassword.setFieldLabel("Password");
		setWidget(frmpnlNewFormpanel);
		frmpnlNewFormpanel.setSize("379px", "98px");
	}

}
